package com.xianniu.ltc.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xianniu.ltc.model.entity.TGongyingshangguanliDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author WangRuiJie
 * @Title: TGongyingshangguanliMapper
 * @Package com.xianniu.ltc.mapper
 * @Description:
 * @date 2022/1/1711:17 上午
 */

@Mapper
public interface TGongyingshangguanliMapper extends BaseMapper<TGongyingshangguanliDTO> {

    @InterceptorIgnore(tenantLine = "on")
    int insertSupplier(TGongyingshangguanliDTO dto);

    @InterceptorIgnore(tenantLine = "on")
    int deleteBySupplierId(@Param("tenantCode") String tenantCode, @Param("weiyiid") Integer weiyiid);

    @InterceptorIgnore(tenantLine = "on")
    TGongyingshangguanliDTO selectBySupplierId(@Param("tenantCode") String tenantCode, @Param("weiyiid") Integer weiyiid);

    @InterceptorIgnore(tenantLine = "on")
    int updateByIdAndTenantCode(TGongyingshangguanliDTO dto);
}
